#include "StdAfx.h"
#include "User.h"

User::User(void)
{
	ZeroMemory(m_cID,sizeof(m_cID));
	m_nRoomNumber = -1;
	m_bRoomMaster = false;
}

User::~User(void)
{
}

void User::setSocket(SOCKET socket)
{
	m_socket = socket;
}

void User::setSocketAddr(SOCKADDR_IN SocketAddr)
{
	m_SocketAddr = SocketAddr;
}

void User::setID(char* p_ID)
{
	memcpy(m_cID,p_ID,15);
}

void User::setRoomMaster(bool b_RoomMaster)
{
	m_bRoomMaster = b_RoomMaster;
}

void User::setRoomNumber(int n_Number)
{
	m_nRoomNumber = n_Number;
}

SOCKET User::getSocket()
{
	return m_socket;
}

SOCKADDR_IN User::getSocketAddr()
{
	return m_SocketAddr;
}

char* User::getID()
{
	return m_cID;
}


bool User::getRoomMaster()
{
	return m_bRoomMaster;
}

int User::getRoomNumber()
{
	return m_nRoomNumber;
}

